<?php  
 $db['goods_props_extend']=array ( 
  'columns' => 
  array (
    'id' => 
    array (
      'type' => 'bigint unsigned',
      'required' => true,
      'pkey' => true,
      'extra' => 'auto_increment',
      'label' => 'ID',
      'width' => 110,
      'hidden' => true,
      'editable' => false,
      'in_list' => false,
    ),
    'goods_id' =>
    array (
      'type' => 'table:goods',
      'default' => 0,
      'required' => true,
      'label' => app::get('b2c')->_('产品ID'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
    ),
    'goods_p'=>array(
        'type' => 'int',
        'label' => app::get('b2c')->_('产品位置')
    ),
    'props_value_id' => 
    array (
        'type' => 'number',
        'required' => true,
        'label' => app::get('b2c')->_('属性值序号'),
        'width' => 110,
        'editable' => false,
        'default' => '0',
        'in_list' => true,
    ),
    'pvalue' => 
    array (
      'type' => 'varchar(200)',
      'required' => true,
      'default' => '',
      'label' => '属性值',
    ),
  ),
  'comment' => '商品属性扩展表',
  'index' => 
  array (
    'ind_goods_id' => 
    array (
      'columns' => 
      array (
        0 => 'goods_id',
      ),
    ),
      'ind_props_value_id' =>
      array (
      'columns' =>
          array (
              0 => 'props_value_id',
          ),
      ),
      'ind_goods_p' =>
          array (
              'columns' =>
                  array (
                      0 => 'goods_p',
                  ),
          ),
  ),
  'engine' => 'innodb',
  'version' => '$Rev: 44513 $',
);